<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>预约模块 -- 预约管理</title>
<link href="./public/core/admin/css/base.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="./public/core/index/js/dedeajax2.js"></script>
<script language="javascript" src="./public/core/admin/js/ieemu.js"></script>
<script language="javascript" src="./public/core/admin/js/context_menu.js"></script>
<script language="javascript" src="./public/core/admin/js/main.js"></script>
<script language="javascript" src="./public/core/admin/js/yuyue_admin.js"></script>

</head>
<body background='img/allbg.gif' leftmargin='8' topmargin='8'>
	<div class="bodytitle">
	<div class="bodytitleleft"></div>
	<div class="bodytitletxt"><a href='../yuyue' target='_blank'><b>预约模块</b></a> -- 预约管理</div>
</div>
<tr>
<td align='center' valign='top'>
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#E2F5BC;">
	<tr>
		<td height="24" colspan="12" align="left" background="img/tbg.gif">
		&nbsp;§<b>预约 &nbsp;  <a href="?do=yuyue_admin&check=0">待处理预约</a> | <a href="?do=yuyue_admin&check=1">成功预约</a> | <a href="?do=yuyue_admin&check=2">已处理预约</a> | <a href="?do=yuyue_admin&check=3">全部预约</a> </b>
		</td>
	</tr>
	<form name="form2" action="?do=yuyue_admin">
		<tr height="22" align="center">
			<td  width="7%" bgcolor="#EDF9D5">id</td>
			<td width="4%" bgcolor="#EDF9D5">选择</td>
			<td width="6%" bgcolor="#EDF9D5">预约号</td>
			<td width="8%" bgcolor="#EDF9D5">名字</td>
			<td width="3%" bgcolor="#EDF9D5">性别</td>
			<td width="3%" bgcolor="#EDF9D5">年龄</td>
			<td width="12%" bgcolor="#EDF9D5">科室-病种</td>
			<td width="15%" bgcolor="#EDF9D5">邮箱</td>
			<td width="8%" bgcolor="#EDF9D5">电话</td>
			<td width="12%" bgcolor="#EDF9D5">提交时间</td>
			<td width="6%" bgcolor="#EDF9D5">处理状态</td>
			<td width="6%" bgcolor="#EDF9D5">详细</td>
		</tr>
	{dede:datalist}
	<?php
		if($fields['sucorder'] == 0){
			$fields['sucorder'] = '待处理';
		}else if($fields['sucorder'] == 2){
			$fields['sucorder'] = '已处理';
		}else if($fields['sucorder'] == 1 ){
			$fields['sucorder'] = '成功预约';
		}
		$fields['dateline'] = gmdate('Y-m-d H:i' , $fields['handtime'] + 3600*8);
	?>
	<tr align='center' bgcolor="#FFFFFF"  onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';"  height="22"  >
		<td><?php echo $fields['id']; ?></td>
		<td><input name="yuyueid" type="checkbox" id="yuyueid" value="<?php echo $fields['id']; ?>" class='np' /></td>
		<td><?php echo $fields['orderid']; ?></td>
		<td><?php echo $fields['name']; ?></td>
		<td><?php echo $fields['sex']; ?></td>
		<td><?php echo $fields['age']; ?></td>
		<td><?php echo $fields['keshi']."-<span style=\"color:#FF6600\">".$fields['type']."</span>"; ?></td>
		<td><?php $str=$fields['isemailed']=="1"?"":"<span style=\"color:#009933 \" >(无效)</span>"; echo $str.$fields['email']; ?> </td>
		<td><?php echo $fields['telephone']; ?> </td>
		<td><?php echo $fields['dateline']; ?></td>
		<td><?php echo $fields['sucorder']; ?></td>
		<td> <img  src="./public/core/admin/images/gtk-ex.png" onClick="QuickEdit(<?php echo $fields['id'];?>, event, this);" style='cursor:pointer' /></td>
	</tr>
	{/dede:datalist}
	<tr bgcolor="#F8FBFB" >
		<td height="24" colspan="12" align="left">
		&nbsp;
		<a href="javascript:selAll()" class="coolbg">全选</a>
		<a href="javascript:noSelAll()" class="coolbg">取消</a>
		<a href="javascript:dealyuyue(0)" class="coolbg">已处理</a>
		<a href="javascript:sucyuyue(0)" class="coolbg">成功预约</a>
		<a href="javascript:deleteyuyue(0)" class="coolbg">删除</a></td>
	</tr>
	</form>
	<tr align="right" bgcolor="#E5F9FF">
		<td height="20" colspan="12" align="center" bgcolor="#EDF9D5">
			{dede:pagelist /}
		</td>
	</tr>
</table>
</td>
</tr>
</body>
</html>